package summerController

import (
	"github.com/emicklei/go-restful/v3"
	summerContainer2 "webGoDemo/summer/summerContainer"
	summerService2 "webGoDemo/summer/summerService"
)

func FindAllUsers(request *restful.Request, response *restful.Response) {
	// 获取对应的service
	getUserService := summerContainer2.Get("UserService").(summerService2.UserService)
	result, _ := getUserService.ListAllUser()
	err := response.WriteAsJson(result)
	if err != nil {
		return
	}
}
